﻿using System.Collections.Generic;
using System.Linq;
using System.ServiceModel.Activation;
using Acaweb.Common;
using Acaweb.Model.Entities;
using Acaweb.Servicios.Contracts;
using Components = Acaweb.Componentes.Contracts;

namespace Acaweb.Servicios.Services
{
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class PracticantesService : IPracticantesService
    {
        Components.IPracticantesService _PracticantesComponent = AppCtx.Resolve<Components.IPracticantesService>();

        public List<Practicantes> GetAll()
        {
            return _PracticantesComponent.GetAll().ToList();
        }

        public Practicantes GetById(int IdPracticante)
        {
            return _PracticantesComponent.GetById(IdPracticante);
        }

        public Practicantes GetByEstudiante(int CodigoEstudiante)
        {
            return _PracticantesComponent.GetByEstudiante(CodigoEstudiante);
        }

        public void Insert(Practicantes Practicante)
        {
            _PracticantesComponent.Insert(Practicante);
        }

        public void Update(Practicantes Practicante)
        {
            _PracticantesComponent.Update(Practicante);
        }
    }
}